

#ifndef _SHELL_REQLOGIN_MESSAGE_H_
#define _SHELL_REQLOGIN_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ReqLoginMessage : public Message
{
	public:
	ReqLoginMessage();
	~ReqLoginMessage();
	void reset();
	ReqLoginMessage* clone();
	static const int _ID;
	//登陆服务器id
	int32 createServerId;
	//用户名
	std::string username;
	//密码
	std::string userpass;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
